import { DAKALIST,SDAKALIST } from './actionTypes'

const defaultState={
  list:[],
  lists:[]
}

const  reducer = (state = defaultState,action) =>{
  switch(action.type){
    case DAKALIST:
      return {
        list:action.list
      }
    case SDAKALIST:
      return {
        lists:action.lists
      }
    default:
      return state
  }

}
export default reducer